import java.util.Scanner;

// Press Shift twice to open the Search Everywhere dialog and type `show whitespaces`,
// then press Enter. You can now see whitespace characters in your code.
public class Main {
    public static void main(String[] args) {

        Magic m = new Magic();

        System.out.println("请输入Magic 的年龄:");
        Scanner scanner = new Scanner(System.in);
        m.age = scanner.nextInt();

        System.out.println("请输入Magic 的体重:");
        Scanner scanner1 = new Scanner(System.in);
        m.weight = scanner1.nextInt();

        System.out.println("请输入Magic 的身高:");
        Scanner scanner2 = new Scanner(System.in);
        m.height = scanner2.nextInt();


        System.out.println("请输入Magic 所拥有的行为:");
        Scanner scanner3 = new Scanner(System.in);
         int s = scanner3.nextInt();
         m.mood = scanner3.nextInt();


        for(int i = 0; i <= s ; i++){
            System.out.println("请输入Magic 所拥有的行为:");
            Scanner scanner4 = new Scanner(System.in);
            String action= scanner4.next();
            m.setArr(action);
        }

        m.sayHello();

        m.SwitchAction();

        grade student = new grade();
        student.language=80;
        student.maths=90;
        student.english=50;
        student.physics=70;
        student.chemistry=65;
        student.biont=65;
        student.sumgrade();
        student.avegrade();
        student.maxgrade();
        System.out.println("总成绩为:"+student.sum);
        System.out.println("平均成绩为:"+student.ave);
        System.out.println("最高成绩为:"+student.max);
    }
}